Motion.PowerAxis 方法
启用或停用轴的运作。
命名空间:IntervalZero.KINGSTAR.Local.Api
组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
语法
public KsCommandStatus PowerAxis(
int Index,
bool Enable,
bool EnablePositiveDirection,
bool EnableNegativeDirection
)
Public Function PowerAxis(
Index As Integer,
Enable As Boolean,
EnablePositiveDirection As Boolean,
EnableNegativeDirection As Boolean
) As KsCommandStatus
参数
Index [in]
型别:int
轴索引。索引以 0 为起始;别名将影响此参数。
Enable [in]
型别:bool
true:启用轴;false:停用轴。
EnablePositiveDirection [in]
型别:bool
true:使轴朝正方向移动。
EnableNegativeDirection [in]
型别:bool
true:使轴朝负方向移动。
回传值
回传 KsCommandStatus 类别。
备注
此函式可用来启动或停止伺服马达并防止轴超程。
范例
N/A
参见